

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persistedState from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import './style/base.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 全局指令
import direc from './directives'
import echartsPlugin from "./echarts.plugin";
// import xicon from './components/xicon'
// import xechars from './components/xechars'
import componentsfn from './components'
import componentsfn1 from './components(1)'
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css
// import { videoPlay } from 'vue-video-play'
const app = createApp(App)
const pinia = createPinia()
app.use(echartsPlugin);
app.use(createPinia())
app.use(vue3videoPlay)
// app.component('videoPlay',videoPlay)
app.use(router)
app.use(ElementPlus)
app.use(pinia)
//自定义组件
// app.component('X-icon',xicon)
// app.component('X-echars',xechars)

componentsfn(app)
componentsfn1(app)


direc(app);
// app.directive('dragexcelupload', {
//   mounted(){},
//   updated(){}
// })
pinia.use(persistedState)

app.mount('#app')
